home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / frend.gsh < prev    next >
Text File  |  2000-08-22  |  2KB  |  66 lines

  1. // defines Frend robot
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. #ifndef INCLUDED_FREND_GSH
  7. #define INCLUDED_FREND_GSH
  8.  
  9. ////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include "defaults.gsh"
  12.  
  13. hierarchy Hcy_Frend
  14. {
  15.     file "units\frend mkii.RIF"
  16.     name "frend mkii"
  17.     hotspot "Dum Flash"
  18. }
  19.  
  20. hierarchy Hcy_FrendCustomize
  21. {
  22.     file "units\wepfrend.RIF"
  23.     name "wephardrok"
  24. }
  25.  
  26. hierarchy Hcy_FrendShadow
  27. {
  28.     file "units\frend_shadow.RIF"
  29.     name "frend_shadow"
  30. }
  31.  
  32. character Chr_Frend : Chr_DefaultGoodie
  33. {
  34.     turning speed   0.75    // this is in revolutions per second
  35.     walking speed   1    // this is in animation cycles per second
  36.     strength        150    // initial strength points
  37.     aim             2    // how many degrees off target he can be at most
  38.     sight angle        75    // in degrees
  39.     sight range     8    // in metres
  40.     hearing range    16    // in metres
  41.     aggression    0.9    // from 0 to 1
  42.     radius        1    // used by the movement model
  43.     gun yaw angle    180    // in degrees
  44.     customization hierarchy Hcy_FrendCustomize
  45.     shadow hierarchy        Hcy_FrendShadow
  46.     description    frend description
  47.     status window u    339
  48.     status window v    0
  49. }
  50.  
  51. role Rol_Frend : Rol_DefaultRobot
  52. {
  53.     shape        Hcy_Frend
  54.     character    Chr_Frend
  55.     identifier    "FREND"
  56.     armour        4
  57.     destructibility    Des_Explode
  58.     ai            bot
  59. //    sever point "upper arm right,upper arm left,thigh left,thigh right"
  60.     limit        4
  61. }
  62.                     
  63. ////////////////////////////////////////////////////////////////////////////////////
  64.  
  65. // end wrapper - for preventing multiple or recursive inclusions
  66. #endif // !INCLUDED_FREND_GSH